package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysGeneralWordMapper;
import com.ruoyi.system.domain.SysGeneralWord;
import com.ruoyi.system.service.ISysGeneralWordService;

/**
 * 普通词Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-19
 */
@Service
public class SysGeneralWordServiceImpl implements ISysGeneralWordService 
{
    @Autowired
    private SysGeneralWordMapper sysGeneralWordMapper;

    /**
     * 查询普通词
     * 
     * @param id 普通词主键
     * @return 普通词
     */
    @Override
    public SysGeneralWord selectSysGeneralWordById(Long id)
    {
        return sysGeneralWordMapper.selectSysGeneralWordById(id);
    }

    /**
     * 查询普通词列表
     * 
     * @param sysGeneralWord 普通词
     * @return 普通词
     */
    @Override
    public List<SysGeneralWord> selectSysGeneralWordList(SysGeneralWord sysGeneralWord)
    {
        return sysGeneralWordMapper.selectSysGeneralWordList(sysGeneralWord);
    }

    /**
     * 新增普通词
     * 
     * @param sysGeneralWord 普通词
     * @return 结果
     */
    @Override
    public int insertSysGeneralWord(SysGeneralWord sysGeneralWord)
    {
        return sysGeneralWordMapper.insertSysGeneralWord(sysGeneralWord);
    }

    /**
     * 修改普通词
     * 
     * @param sysGeneralWord 普通词
     * @return 结果
     */
    @Override
    public int updateSysGeneralWord(SysGeneralWord sysGeneralWord)
    {
        return sysGeneralWordMapper.updateSysGeneralWord(sysGeneralWord);
    }

    /**
     * 批量删除普通词
     * 
     * @param ids 需要删除的普通词主键
     * @return 结果
     */
    @Override
    public int deleteSysGeneralWordByIds(Long[] ids)
    {
        return sysGeneralWordMapper.deleteSysGeneralWordByIds(ids);
    }

    /**
     * 删除普通词信息
     * 
     * @param id 普通词主键
     * @return 结果
     */
    @Override
    public int deleteSysGeneralWordById(Long id)
    {
        return sysGeneralWordMapper.deleteSysGeneralWordById(id);
    }
}
